/*
 *  loading.h
 *  test
 *
 *  Created by Phillip LeBlanc on 11/4/08.
 *  Copyright 2008 Team FEV. All rights reserved.
 *
 */
#ifndef LOADING_H
#define LOADING_H

#define PATH "Timers.app/Contents/Resources/"

#define SLAYER 0
#define BALL 1
#define HILL 2
#define CTF15 3
#define CTF30 4

#define SNIPER 900
#define ROCKETS 920
#define CAMO 940
#define OVER 960
#define GAME 1000

#define GUARDIAN 0
#define CONSTRUCT 1
#define NARROWS 2
#define PIT 3

#define PAUSE_PLAY 0
#define RESET 1

extern Mix_Chunk *hillonemin;
extern Mix_Chunk *hilltensec;
extern Mix_Chunk *hill30sec;
extern Mix_Chunk *hillmoved;

extern Mix_Chunk *sniper30;
extern Mix_Chunk *sniper10;
extern Mix_Chunk *sniper_aval;

extern Mix_Chunk *rockets30;
extern Mix_Chunk *rockets10;
extern Mix_Chunk *rockets_aval;

extern Mix_Chunk *over30;
extern Mix_Chunk *over10;
extern Mix_Chunk *over_aval;

extern Mix_Chunk *camo30;
extern Mix_Chunk *camo10;
extern Mix_Chunk *camo_aval;

extern char *mapname[4][5];

extern SDL_Surface* screen;
extern TTF_Font* font;

int g_time(int e_time);
int SDL_Setup();
TTF_Font* loadfont(char* file, int ptsize);
char * addpath(const char *ch);
void showTime(const char *str, int weapon_id);
int loadMap(map *themap, char *mapsettings);
void initTimers();
int playSound(void *data);
void redrawScreen();
int displayNotification(char *str, int sec);
void clearNotification();
void pause_timer();
void displayTimers();

#endif